# -*- coding: utf-8 -*-
clientid = 0
localport = 0
destid = 0

import socket
# 获取本地ip
def getLocalIP():
    s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
    try:
        s.connect(('8.8.8.8', 80))
        ip = s.getsockname()[0]
        return ip
    finally:
        s.close()

import queue
# g_queueMsg = queue.Queue()
queueText = queue.Queue()

def showInfo(msg):
    queueText.put(msg)